package com.episode.duetapi.utils;

public enum ResultCode {

    DATA_SUCCESS(200, "数据返回成功"),
    DATA_ERROR(-1, "数据处理异常"),
    DATA_404(404, "页面不存在"),
    DATA_405(405, "请求方式错误"),
    AUTHORIZATION4001(4001, "Header中缺少Authorization"),
    AUTHORIZATION4002(4002, "Authorization已过期"),
    AUTHORIZATION4003(4003, "Authorization格式错误"),
    AUTHORIZATION4004(4004, "Authorization没有被正确构造"),
    AUTHORIZATION4005(4005, "Authorization签名失败"),
    AUTHORIZATION4006(4006, "Authorization非法参数异常"),
    AUTHORIZATION4007(4007, "用户被禁用"),
    AUTHORIZATION4008(4008, "登录失败请重新登陆"),
    MainProject5000(5000, "参数错误"),
    LoginErroe(5001,"用户名或密码错误"),
    ;


    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
